<?php

class JapwordView extends TwigView {

	public function __construct($path = "") {
		parent::__construct($path);
		
		$this->assign('user_connected', LoginHelper::getUserConnected());
		$this->assign('url_current', SCRIPT_PATH);
		$this->assign('RACINE_URL', RACINE_URL);
	}
	
	public function addNotifications() {
		$this->assign('notifications', array(
			'errors' => Notification::getAndClean(Notification::$ERROR),
			'success' => Notification::getAndClean(Notification::$SUCCESS),
		));		
	}
}